#pragma once
#include <iostream>
using namespace std;
class Date {
public:
    //friend ostream& operator<<(ostream& _cout, const Date& d);
    Date(int year = 1, int month = 1, int day = 1) {
        _year = year;
        _month = month;
        _day = day;
    }
    bool operator<(const Date& d)const
    {
        return (_year < d._year) ||
            (_year == d._year && _month < d._month) ||
            (_year == d._year && _month == d._month && _day < d._day);
    }
    bool operator>(const Date& d)const
    {
        return (_year > d._year) ||
            (_year == d._year && _month > d._month) ||
            (_year == d._year && _month == d._month && _day > d._day);
    }
    friend ostream& operator<<(ostream& _cout, const Date& d) {
       _cout << d._year << "- " << d._month << "- " << d._day << endl;
        return _cout;
    }
private:
    int _year;
    int _month;
    int _day;
};